Add collision checking in moving object class