Extract game scoring logic in separate module