java case oop and java maze explorer