fix the way memory is deallocated
add in basic physics/collision detection

stubs for very basic physics and collision detection calls