square rooms , oval ones , even an area shaped like a pentagon , all connected by twisting hallways that curved around , doubled back on each other , and often led to the other side of the house entirely .