pseudo code for game logic
pseudo code for game logic