rename ring_buf.*:ring_buf_size to ring_buf_used, add pos wrap in ring_buf.c:ring_buf_append and check return value of ring_buf_append in csnake.c:snake_round