Some reformatting
Add a new isMoveValid test