Completed C version of Snake game