Table class now has a bool

A few loops got replaced with map()