Deleting redundant line and initializing arrays

Deleted redundant global statement and initialized arrays used