Implemented Game Logic class and refactored the PlayState