seperated collision detection code from object manager

Signed-off-by: bytechomper <bytechomper@gmail.com>