fixed errors in captainCrunch code