Added score counter and gameover detector