just made a class called state that contains a player and the worl