Change Rectangle to Polygon in Hanoi.java