Add game over checking function that also calculates final scores