added method to calculate score and fixed permitted params in controller for battles
added rabl child node for scores