"!" stands for "== null"

Example:
Instead of writing
while(player == null)

you can shorten it a bit:
while(!player)

Its the same, just shorter.
However its up to you how you'll write it.
Some people prefer while(!player) others write while(player==null) it doesn't really matter I guess.