A program that checks if a chess move is valid