class added to be able to check collision