Revert "Refactored attack code"

This reverts commit 6b112cebc249f74648a8866a6c60365c13122c90.

Conflicts:
	scripts/game.js