repaired GUI

GameStates not working yet but buttonReleased is now fully working