added logic to counter user moving in opposite corners