Updated training-blocks.js to take account of ticket availbaility