var user = new individual(); var chessgame = new chess(); while(user.energy > 0) { chessgame.playmove(user.decidemove()); if(datetime.now.hour > 21) { user.rejuvenate(); } } console.writeline("following the guidelines laid out prior, make sure to cut out time for rest to keep your mind sharp for chess strategy development.");