check left and right piece collision

prevent left and right movement if runs into piece
consolidated some redundant code into function
working on checking for collisions after a rotate