diff --git a/pom.xml b/pom.xml
index 6615a96d..cae82038 100644
--- a/pom.xml
+++ b/pom.xml
@@ -452,7 +452,6 @@
true
true
-
diff --git a/src/main/java/nl/tudelft/jpacman/sprite/PacManSprites.java b/src/main/java/nl/tudelft/jpacman/sprite/PacManSprites.java
index 9b68270f..0d301186 100644
--- a/src/main/java/nl/tudelft/jpacman/sprite/PacManSprites.java
+++ b/src/main/java/nl/tudelft/jpacman/sprite/PacManSprites.java
@@ -1,6 +1,7 @@
package nl.tudelft.jpacman.sprite;
import java.io.IOException;
+import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
@@ -82,7 +83,7 @@ public AnimatedSprite getPacManDeathAnimation() {
* @return The animated sprite facing the given direction.
*/
private Map directionSprite(String resource, int frames) {
- Map sprite = new HashMap<>();
+ Map sprite = new EnumMap<>(Direction.class);
Sprite baseImage = loadSprite(resource);
for (int i = 0; i < DIRECTIONS.length; i++) {