Unfinished work on java port for knights problem