A simple dooz game with javascript