Fixed and tested pingPong function and fixed rotation angles