Tower defense game logic sample