wait to attach event listeners until game is loaded