added game logic layout