moved Room class in a separate file, various server bugs corrected

now this works:
1. refresh 
2. click black
3. board should rotate to black