Fixed so the isValidMove signature is more consise with the other ones
Removed unused code