add some score checking logic
style changes
add some tests for game logic