PLayer script and game state