Noice. Couldn't swap cubes though
I tried really hard to fix it. But couldn't understand why it was not working, it works sometimes but sometimes it just doesn't works at all.
I fixed it just have to swapping from FixedUpdate () to Update()