Better fix for bad input in snake