diff --git a/js/html_actuator.js b/js/html_actuator.js
index 94a8f3537f186ae3e3ec1c13fa48ff828cb202bb..186a63fc1992023f49ac0d8cf00e1aae4f46f1ac 100644
--- a/js/html_actuator.js
+++ b/js/html_actuator.js
@@ -1,7 +1,7 @@
function HTMLActuator() {
- this.tileContainer = document.getElementsByClassName("tile-container")[0];
- this.scoreContainer = document.getElementsByClassName("score-container")[0];
- this.messageContainer = document.getElementsByClassName("game-message")[0];
+ this.tileContainer = document.querySelector(".tile-container");
+ this.scoreContainer = document.querySelector(".score-container");
+ this.messageContainer = document.querySelector(".game-message");
this.score = 0;
}