corrected constructor in game element factory