Calculations on server

Should fix desync on clients