A simple connect four game in javascript