Refactored detect collision
Removed cocoa framework flag as it is not yet used
Added rect attributes to obstacle. Refactored the way setters are used.
Added collision detection for obstacles