Initial tests for collisions
Fixed bug for the square collision