handle game errors