Simplify function to swap two buffers.
Add function to move buffer to next window.