Made machines use their models and be able to rotate, put teleport code
into one file