Basic implementation of Snake.