worked on game logic and calculate score

the game mostly works now stil no gui