http://www.java-forums.org/new-java/70466-help-overlapping-rectangle-assignment.html