public static void movePlayerWest() { if (!xml.roomWestDescript().equals("an invisible wall")) { Door currentRoomDoor = currentRoom.getRoomDoor(); if (currentRoom.containsLockedDoor() && currentRoomDoor.getDirection().equalsIgnoreCase("west")) { GameGUI.addToConsole("You run head first into a " + currentRoomDoor.getName()); } else { CartesianPoint.x--; loadRoom(); } } else GameGUI.addToConsole("You run head first into an invisible wall. You remain the same room."); }