Battle code now works with ruby2.0.0