overhauled entity system; implemented basic collision detection