Solved global variables problem

By using extern keyword. Also I've created a new sprite