better collision code
Merge pull request #16 from alexoliveira/feature/brickCollision

better collision code