more refactoring; added physics controller and rudimentary hit testing