Converted commented code snippet, addgroups() into global function. Stairs will be a fuel source in part 2.