Make MazeComponent take any kind of object as identifier