Makes sure that rendering handles things in the right orders. Also,
modified canBeOn to take arguments rather than holding info.