Modified for adding state manager(added getgame state)
Added StateManager