fixed frame allocator, project 2 tests passes