Terrible, migraine-inducing, "battleship" java project