While castles continued to be built well into the 16th century , new techniques to deal with improved cannon fire made them uncomfortable and undesirable places to live .
Castles were still built , but new ways to protect castles from cannons and guns made them uncomfortable places to live in .