def reconstruct_path(came_from, current):
    """
    Helper method for astar to determine path\n

    @param came_from -> Cells searched while finding path\n
    @param current -> Current node where snake head is\n
    @returns total_path -> Reversed list of coordinates to goal
    """
    total_path = [current]
    while current in came_from.keys():
        current =  came_from[current]
        total_path.append(current)
    return list(reversed(total_path))