Tightening up isValidMove

Fixes #17 .