A game engine for simple quartett implemented in JavaScript