Modified the style of the code in GameLogic and Player