def is_on_board(board, level, x, y) -> bool:
    """
    checks if coordinates are in board bounds
    """
    try:
        board[level][x][y]
        return True
    except IndexError:
        return False