Java version of the pseudogame War for CS110