finish square.java