Some train stuff (Need to fix tile entity being null for rotation check)