Added my code

The only errors are the game state ones