added levels and updated game logic