java implementation of pogo game