added room functionality and position class