 void assignDirection(uint8_t a, uint8_t b, uint8_t c, uint8_t d, uint8_t e, uint8_t f, uint8_t g, uint8_t h) {
   movementVal = 0;
   lastDirection = direct;
-  lastBodX = bodX;
-  lastBodY = bodY;
-   if (lastDirection == a) {direct = b;}
+  lastballX = ballX;
+  lastballY = ballY;
+  if (lastDirection == a) {direct = b;}
   else if (lastDirection == c) {direct = d;}
   else if (lastDirection == e) {direct = f;}
   else if (lastDirection == g) {direct = h;}

uint8_t movementVal;
uint16_t scoreR;
uint16_t scoreL;
uint8_t bodX;
uint8_t bodY;
uint8_t lastBodX = 64;
uint8_t lastBodY = 32;
uint8_t direct = START;
uint8_t lastDirection;
uint8_t rndDirection;

#define PADDLE_LMID 8

#define SPD0 0
#define SPD1 40

#define PADDLE_XL 0
#define PADDLE_XR 126
