Python snake game using curses