Moving variables to tile entity