Debugged a bit. Now compiles and init_mines seems to work