added some pseudo code for game logic