Replaced some missing code with snake collision