snake game using python and curses model