def last_room(game):
    """
    Will check if the location of the player is the last room or not.
    This checks if the game will end.

    Args:
        game: Current game state

    Returns:
        Will return True if the player is in the last room
        otherwise it will return False
    """
    player = game.player
    if player.position['location'] == player.position['last room']:
        return True
    return False