added missing end to Player controller