handled collision in random play