logic fix

deep copy the snake head so subsequent calls to .isSafe(Direction)
aren't erroneous.