Added kingCastleSwap functionality to the movePiece function - still to test and add javaDoc