Online billiards