added elastic collision with checkbox