fixed snake so it can't go back on itself