built score mechanism

now the game is fully working