Began implementation of isValidMove