def checkPermButtonClicked(game, clickX, clickY):
    """
    Returns true if permanent button was clicked, else false
    """
    return (game.permButtonObj is not None and 
        game.permButtonObj.collidepoint(clickX, clickY))