Refactoring, Bugfix

Fixed a bug that randomly had players not spawn at their beds