centipede changes direction and there is a rough collsion detection implemented also