portable posix shell snake game without bashisms