Validate coordinates

Throws an IllegalArgumentError if the user provides an incorrect move.