Completely rewrote gamemode