Extract query and method to compute score when game is in progress