game logic part 2