Added resource manager and basic building implementation