Moved dirty state from squares to entities. Changed Position object to Vector