Java implementation of classic Rogue