as the royal and imperial navy fought numerous battles in the pacific , with the royal navy suffering increasing losses , and as the japanese encouraged independence movements among the burmese and malaysians leading to increasing riots and uprisings throughout both colonies , atlee finally agreed to cede malaysia , burma , and singapore to japan .