Added QuadTree object to collision.js for QuadTree detection. Added entityFactory.js for organization of entities and complementary methods.