engine : added method to return the game state