Added the basics for checking if a move is legal.