Fixed pathfinding, added gameoverstate and player class. Changed the gamecontroller changeState behaviour to delete the current, then add a new gamestate, and add the addState function to simply add a state.