Added priority A et B

Still has bugs, but mostly functional