Added unit previews

implemented unit previews.
fixed bugs with triangular selection.