You can move buildings around on your farm to any area when there is enough space. To move a building, you need to tap and hold on the building until it has been selected and then drag it to the space you wish to place it in.  If it turns red then it means there is not enough space there for you to place it.