improved check_strike and added more error handling