Added first stage of detecting attacks

-Added intersect mesh checking in registerBeforeRender function
-Modified input to take care of spacebar input