refactored room object into it's own file and moved its methods to the p...

...rototype