def find_heads(own_snake, data):
    """
    Finds coordinates of all the heads of enemy snakes
    :param own_snake:
    :param data:
    :return: list of coordinates of heads
    """
    enemy_heads = [(snake['body'][0]['x'], snake['body'][0]['y']) for snake in data['board']['snakes'] if
                   snake['id'] != own_snake.id]
    return enemy_heads