things to check when buying a flat