updated gameplay controller to remove compiler warnings