Two classes will never collide. One object of a class can collide with another object. So either you get a reference to the Die object when a collision was detected in the Personaj class or the Die object needs to get a reference to at least one of the other objects.