ncurses implementation of pong