fixed small bugs in snake