if(!gamePaused){

Is the same as putting

if(gamePaused == false){

Just a more efficient way of writing it.

Also, if(gamePaused){

Is the same as:

if(gamePaused == true){