Added user input validation for gamplay