made collision a class instead of a struct