Checked user input for directions so that if they are correct it would indicate with a 1 and if incorrect it would indicate with a 0