created collision methods to recognise and detect collisions between objects during gameplay