added checkWall and checkBehind wall there are still
segmention erros.. and the logic is not working right!