def safe_tile(tile) -> bool:
    """Determines if the given tile is safe to move onto."""
    if tile["type"] == "Blank":
        return True
    if tile["type"] == "Doodah":
        return True
    if tile["type"] == "SnakeTail" and tile["seg"] == 0:
        return True
    return False