Move (S)nake to eat fruit(O), avoid obstacles(X)