Finally fixed silly snake algo