Made sure defence and attacks only happen at the right time