Added collision detection and rudimentary inventory.