Added functionality to obtain PlayerId of the active player. Build is twice the size, may be a result of how I built it using ANT.