Refactored aiming code. hopefully final prototype