refactored element creation in the game script