Trent Castles avoids season ending shoulder surgery