beginning to add collision code