Code cleanup

Optimize getThingByUID when checking for creature
Utilize existing variables better
Removed unnecessary query in loadPlayer
Removed unused variables