Stuff works

Fixeded teleport and cleaned code