Code from game-off-2012 GitDefence, working on it individually now