def drawCard(cards, cardsLock):
    """
    Acquires the lock and draws a card from the pile.
    If there are no more cards in the pile, returns False
    :param cards: pile
    :param cardsLock: pile lock
    :return: Card or False if no card
    """
    cardsLock.acquire()
    if len(cards) > 0:
        drawn = cards.pop()
        cardsLock.release()
        return drawn
    else:
        return False