Jan Bednarek earns Poland the victory but Japan still go through to the last 16 based on yellow cards received