bug fixed, outofbounds collision added