[Improve]Collision implementation
[Change]RenderWindow argument by a pointer