Implemented panning invariation, but there is a bug that will show two colored squares at the same time. #20