Added input functionality, modified engine to use service locator, hammering out math functions