It would be very easy! and your collision checking does not have to be for each class individually; you can use 'null' instead of a class name to include all classes (thereby only requiring one check). You order of checks should be
(1) world edge checking
(2) food checking
(3) null (anything else or obstacle) checking

