advanced movment and doors

so i splittet the if conditions and added door support to the player and
the loader.