Implemented basic collision detection!