Almost functional game . score calculation logic is screwed up