Snake bot - corrected exception type