Kaimana Mini Error *Please help

Hello!

I recently built a new controller with LED. I purchased Kaimana mini from arcade paradise and followed all steps using http://brightstick.freecade.org/, but its not working correctly :(. The lights are keep flashing and activate the wrong buttons.

The attached below is my button layout and LED order (UP->LEFT->P4->DOWN->RIGHT->K4->K3->P1->P2->K2->P3->K1).

using arduino 1.6.5 - I defined LED orders as below. but its not working.

//LED INDEX
#define LED_UP 0
#define LED_UP_B 1
#define LED_K1 22
#define LED_K1_B 23
#define LED_K2 18
#define LED_K2_B 19
#define LED_K3 12
#define LED_K3_B 13
#define LED_K4 10
#define LED_K4_B 11
#define LED_P4 4
#define LED_P4_B 5
#define LED_P3 20
#define LED_P3_B 21
#define LED_P2 16
#define LED_P2_B 17
#define LED_P1 14
#define LED_P1_B 15
#define LED_RIGHT 8
#define LED_RIGHT_B 9
#define LED_DOWN 6
#define LED_DOWN_B 7
#define LED_LEFT 2
#define LED_LEFT_B 3
#define LED_SELECT 0xff
#define LED_SELECT_B 0xff
#define LED_HOME 0xff
#define LED_HOME_B 0xff
#define LED_START 0xff
#define LED_START_B 0xff

#define LED_COUNT 24

Please help. Thank you for your time on this!