String save() { String file = ""; for (int y = 0; y < BHEIGHT; y++) { for (int x = 0; x < BWIDTH; x++) { file = file + blocks[x][y].getBlock().id + ";"; } file = file + ";"; } file = file + "/" + player.getX() + ";" + player.getY() + ";" + player.getDirection(); return file; }