fixed memory management for deleting game objects and added hashmaps for collission detection