Added tile coloring and fixed an error message