updates requirejs config in runtests
corrects castling check in Move - to and from must be on home rank

this fixes a bug where for some reason white could move the king
from e1 to g2 (and have the rook move to f1), but castling was otherwise
OK (black couldn't do anything weird and white couldn't on the queenside)