Added a contact listener for collision detection

Also added dispose method for Box2D variables.