added nbt data for the machines power state
redone button input handling & client-server sync