refactor code by turning @@suits into a global