make game better

getting "error compare number with nil": captain obvious says, check for nils first