added fruit capture, and other things

Now the snake length don't extend due to thread problem. Fruit capture increases the length. Now I need to clean up code. and rewrite a shorter version.