Refactored createTargets and createPlayers into single function that creates DOM elements