game is more or less done. Javascript win!