Changed all local variables in player to private