Refactored input system to allow targetting from a different panel. Fixes #2