Code taken from GoInstant's Snake revamped for McHacks