Working rotate collisions with borders.