fixed a bug when calculating the new position of the snake
better (comprehensive) syntax, logs position