added a lives counter and corresponding GUI element