reworked server architecture (not final), state change and attacks work