Moved tile placing into it's own function