Added knight.java file to the project.