defined a class called "player" and two functions. "update" is used to proceed the game.
"Randomization" is not yet incorporated