function alterarStatus(gameId) {
const game = document.getElementById(`game-${gameId}`);
const button = game.querySelector('.dashboard__item__button');
const gameImage = game.querySelector('.dashboard__item__img');
if (button.classList.contains('dashboard__item__button--return')) {
button.textContent = 'Alugar';
button.classList.remove('dashboard__item__button--return');
gameImage.classList.remove('dashboard__item__img--rented');
} else {
button.textContent = 'Devolver';
button.classList.add('dashboard__item__button--return');
gameImage.classList.add('dashboard__item__img--rented');
}
}