Wrote some basic combat management code