refactored entire core. added node modules to project. added collision detection