added appropriate physics layers
re-factored scripts once more