Better handling of screen coordinates for pawn