if x < 0 or x > 4 or y < 0 or y > 4:
                raise IndexError("Index out of range!")