Pong in ncurses and C