Implemented polymorphic prototypes for square and triangular room