I still don't get Xehanort's end game. It seems as though he figured he could become more powerful by removing his heart and then his Nobody realised he needed his heart to become more powerful, but both were convinced Kingdom Hearts was the route to success. Both were wrong.