snake update function now expects an vector as input
snake update now recieves an vector as input