Fixed a bug in Snake