JS implementation of the game Butifarra