Finished the MasksTest.convertIndex(int) function.
Added testKingAttacks() method to MasksTest.java.