check left to right and up and down not done