implemented second part of game engine (score)