Drawing collisions
added comments and refactored code