Application for maze by java