def get_entity_at_location(x, y, entities):
    """ Return all entities at the given x, y coordinates.
        Return -1 if there is no entity at these coordinates."""
    results = []
    for entity in entities:
        if entity.x == x and entity.y == y:
            results.append(entity)

    if not results:
        return -1
    else:
        return results