checks if theres no moves left, and fixes that problem