fixed some gui drawing things so that tiles don't disappear and other things don't cause null pointer exceptions