Added collision detect