added changes from class today 11/20

fixed it so it checks if where it wants to go is a valid spot to put it, added diagonal (doesn't work yet)