Added and improved error handling for entering move number