Added error checking for player move input