Added type bool to isGameOver()