Added pause functionality via P
Prevent direction changes during pause