public Point IndexToPoint(int index) { return new Point(index % mapWidth, (int)(index / mapWidth)); }