Java console word search game