On each players turn, they have the choice to either move the pieces to the left or the right by one column or place a piece play pressing any key while hovering over selection. Red always starts. This version contains automatic win detection which may cause some lag or be inaccurate.
thanks to @caterbob. prepare to lose :))