separate level and player creation into functions